<%@page import="java.net.URLEncoder"%>
<%@page import="cn.edu.nju.ws.sview.views.User"%>
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" 
 	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Messages</title>
	<link rel="stylesheet" type="text/css" href="/sview/css/group/group.css" />
	<link rel="stylesheet" type="text/css" href="/sview/css/layout.css" />
<link rel="stylesheet" type="text/css" href="/sview/css/smoothness/jquery-ui-1.8.16.custom.css" />
	<script type="text/javascript" src="/sview/script/jquery.js"></script>
<script type="text/javascript" src="/sview/script/json2.js"></script>
<script type="text/javascript" src="/sview/script/jquery-ui-1.8.16.custom.min.js"></script>
	<script type="text/javascript" src="/sview/script/global.js"></script>
	<script type="text/javascript" src="/sview/script/group/msg.js"></script>
  </head>
  <%
     String lang = request.getParameter("lang");
     if (lang != null && lang.equals("zh")) {
			request.getRequestDispatcher("message_zh.jsp").forward(
					request, response);
		} else if (lang == null) {
			lang = "en";
		}
     String from = request.getParameter("from");
     
     String uname = (String)request.getSession().getAttribute("user");
      if(uname==null){
    	  response.sendRedirect("/sview/views/index.jsp");
     }else{
%>
<body> 
    <jsp:include page="/vheader.jsp" flush="true" />
    <div id="container" class="container">
	    <div class="gHeader"><span class="large">My Messages</span></div>
	    <div class="tabDiv">
	    	<ul class="tabUl">
	    		<li id="0" class="tabLi highlighted">Message List</li>
	    	</ul>
	    </div>
	    <div class="content">
	    	<div class="msgList tableDiv">
	    	<table>
	    	<thead>
	    		<tr>
	    			<td>select</td>
	    			<td>From</td>
	    			<td>time</td>
	    			<td>title</td>
	    		</tr>
	    	</thead>
	    	<tbody>
	    	</tbody>
	    	</table>
	    	<input type="button" class="form-button-little" style="float:right;margin-top:50px;" value="delete" onclick="removeMsg();">
	    	</div>
	    	<div class="msgContent" style="display: none;">
	    	</div>
	    </div>
	    </div>
	<input type="hidden" id="display-lang" value="en" />
	<input type="hidden" id="uname" name="uname" value="<%=uname %>" />
	    <jsp:include page="/vfooter.jsp"></jsp:include>
  </body>
  <%} %>
</html>
